feat: Real Apple TV (tvOS) automation: CoreDevice identity, agent lifecycle, tunnel transport#299
Open
setoelkahfi wants to merge 6 commits into
Open
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (24)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Jul 15, 2026
Author
|
tvOS device Living Room validation update:
|
mobilecli can now list and drive tvOS simulators, not just iOS ones. - Recognise tvOS runtimes when parsing the simulator runtime string and report the `tvos` platform. Version parsing now also handles tvOS, watchOS, and xrOS. - Pick the DeviceKit runner bundle id and process name based on the platform, so the `devicekit-tvosUITests` runner is found on tvOS. - Install the arm64 tvOS runner artifact during agent install, with its own version and checksum entries. - Map the tvOS Siri Remote buttons (UP, DOWN, LEFT, RIGHT, SELECT, MENU, PLAY_PAUSE) in the WDA press-button client. - Include tvOS devices when resolving device model metadata. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Real Apple TV units are discovered over the same go-ios path as iPhones and iPads, so detect them by product type (AppleTV*) and report platform tvos. Route real tvOS devices through a shared installResignedRunner helper that downloads devicekit-tvos-runner.ipa and re-signs it with the provisioning profile, and suffix-match the tvOS runner bundle id so the re-signed, team-prefixed id is recognised. Add unit tests for platform detection and agent matching. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Milestones 1-3 for real Apple TV automation: M1 - Retain both device identifiers (public hardware UDID + CoreDevice identifier) on IOSDevice; derive tvOS state from CoreDevice boot/tunnel state; add CoreDevice branches for terminate/install/ uninstall/openURL so real Apple TV app ops no longer hit go-ios 'device not found'. M2 - Add 'agent install --agent-path <ipa>' to sideload a locally built runner (skips download + pinned checksum, keeps re-sign + install); cache the signed runner and a generated .xctestrun under the app cache, bound to the device. Release path stays checksum-verified. M3 - Start the tvOS runner via 'xcodebuild test-without-building' with the cached .xctestrun and talk to the DeviceKit server directly over the CoreDevice tunnel IP (net.JoinHostPort, never LAN/0.0.0.0). Reuse healthy sessions, restart stale ones, own+clean up the child process on shutdown. Per-platform Siri Remote button gating; tvOS dump ui retains focusable element types. Also add 'mobilecli io focus' (device.io.focus RPC passthrough) for accessibility-identity focus, and device-free unit tests for identity retention, platform/state dispatch, artifact override, cache keying, button gating, and terminate PID resolution. Implements: SPECS/quality/real-tvos-device-support/SPEC.md (Milestones 1-3, 6) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
A stale or unpaired go-ios record can fail device-info lookup before CoreDevice-only Apple TVs are appended. Log and skip the bad go-ios entry so CoreDevice discovery can still surface real tvOS devices such as Living Room. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the Xcode 26 tvOS XCTest environment and patch the generated xctestrun with the current CoreDevice tunnel listen host before launch. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
setoelkahfi
force-pushed
the
feature/ios-wireless-coredevice
branch
from
July 15, 2026 13:03
3e5e142 to
5270807
Compare
setoelkahfi
marked this pull request as ready for review
July 15, 2026 13:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#292 <- this.
Adds real Apple TV (tvOS) automation support to
mobilecliso a physical Apple TV discovered over CoreDevice can be driven end to end — device discovery, app lifecycle, agent install/lifecycle, accessibility dumps, screenshots, and Siri Remote input — without falling back to go-ios (device not found) or screenshot-guessed navigation.This is part of a three-repo upstream change across
mobile-next/mobilecli,mobile-next/devicekit-ios, andmobile-next/mobile-mcp.What's in this PR
agent install --agent-path <ipa>for locally built runners while preserving release-download install..xctestrunfor tvOS XCTest lifecycle.mobilecli io focuspassthrough todevice.io.focus.Validation
go build ./...go test ./... -racegofmtcleanPhysical Bedroom Apple TV E2E is tracked in the workspace PR; it is pending the device being online/paired.
Implements: SPECS/quality/real-tvos-device-support/SPEC.md
Related PRs